﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace eSchoolbag.Utility
{
	class URLProvider
	{
		private string _keyName = "CreativeMatrix\\eSchoolbag";

		public string URL1 
		{
			get
			{
				if (Regeditor.IsExisted(_keyName, "URL1"))
					return Regeditor.Read(_keyName, "URL1");
				else
					return "http://app-api.jiaoxueyun.com/select.html";
			} 
			set
			{
				Regeditor.Write(_keyName, "URL1", value);
			}
		}

		public string URL2
		{
			get
			{
				if (Regeditor.IsExisted(_keyName, "URL2"))
					return Regeditor.Read(_keyName, "URL2");
				else
					return "http://app-api.jiaoxueyun.com/writing-monitor.html";
			}
			set
			{
				Regeditor.Write(_keyName, "URL2", value);
			}
		}
	}
}
